import { nanoid } from "nanoid";

export class NavMenu {
    name: String;
    link: String;
    children?: NavMenu[];
    isOpen:boolean;
    id:String;
    constructor(name: String, link: String,isOpen, children?: NavMenu[]) {
        this.name = name;
        this.link = link;
        this.children = children;
        this.isOpen=isOpen;
        this.id=nanoid();
    }
}


